package fr.emn.integration.synthese.controle;

import java.awt.Frame;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;

import fr.emn.integration.synthese.abstraction.Cours;
import fr.emn.integration.synthese.presentation.AjoutEncadrantDialog;

public class ControlJButtonAjoutEncadrant implements ActionListener{
	
	private Cours modele;
	private Frame parent;

	public ControlJButtonAjoutEncadrant(JButton button, Cours modele,
			Frame parent) {
		super();
		this.modele = modele;
		this.parent = parent;
	}

	@Override
	public void actionPerformed(ActionEvent arg0) {
		AjoutEncadrantDialog ajoutEncadrant = new AjoutEncadrantDialog(parent, modele);
		ajoutEncadrant.setVisible(true);
	}

}
